﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebAPITest.Models.Database;

namespace WebAPITest.service
{
    public interface IUserService
    {
        User GetUserByUserName(string userName);
        /// <summary>
        /// 根据用户名判断用户是否存在
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        bool ExistUserByUserName(string userName);
        int AddUserByUser(string UserName, string Password, byte Salt, string Email, string NickName, byte UserLevel);
    }
}
